
"""
打印图形：
图案1正方形如下：
*  *  *  *  *
*  *  *  *  *
*  *  *  *  *
*  *  *  *  *
*  *  *  *  *
"""

print("打印正方形:")
for i in range(0,5):
    for j in range(0,5):
        print("*",end=" ")
    print("")


"""
打印直接三角形
* 
* * 
* * * 
* * * * 
* * * * * 
"""
print("打印正直角三角形:")
for i in range(0,5):
    for j in range(0,i+1):
        print("*",end=" ")
    print("")



"""
打印直接三角形
* * * * * 
* * * * 
* * * 
* * 
*
"""
print("打印倒直角三角形:")
for i in range(0,5):
    for j in range(i,5):

        print("*",end=" ")
    print("")


"""
打印倒等腰三角形
* * * * * * * * * 
  * * * * * * * 
    * * * * * 
      * * * 
        * 
"""
print("打印倒等腰三角形:")
for i in range(5, 0, -1):
    for j in range(5 - i):
        print(" ", end=" ")
    for j in range(2 * i - 1):
        print("*", end=" ")
    print()



"""
打印正等腰三角形
        * 
      * * * 
    * * * * * 
  * * * * * * * po90
* * * * * * * * * 
"""
print("打印正等腰三角形:")
for i in range(1, 6, 1):
    for j in range(5 - i):
        print(" ", end=" ")
    for j in range(2 * i - 1):
        print("*", end=" ")
    print()